import { request } from "./request"
import store from "@/store"

// 获取登录用户信息
// var token = store.state.user.token || null
export const getCurrentUser = () => {
  return request({
    method: 'GET',
    url: "/app/v1_0/user",
    // headers: {
    //   Authorization: `Bearer ${store.state.user.token}`
    // }
  })
}